<!DOCTYPE>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>隐患</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="/common/css/public.css">
    <link rel="stylesheet" type="text/css" href="/common/css/style.css">
    <script type="text/javascript" src="/common/js/jquery.js"></script>
</head>
<body>
    <div class="library_top">
        隐患库【<span th:text="${data.size() + '条'}"></span>】
        <div class="library_sx"><a href="/page?url=library-search">筛选</a></div>
    </div>
    <!--隐患库列表 start-->
    <div class="library_list_nav">
        <ul>
            <li th:if="${data==null || data.size()==0}">
                <!--暂无数据start-->
                <div class="list_no">
                    <img src="/common/images/no.png" />
                    暂无数据
                </div>
            </li>
            <li th:each="lib,index:${data}">
                <input type="hidden" th:value="${lib.ID}">
                <p th:text="${lib.Description}"></p>
                <div class="library_list_bottom">
                    <span class="fleft" th:text="${lib.TypeName}">隐患类别</span>
                    <a href="library_detail.html" class="fright">查看详情>></a>
                    <div class="clear_both"></div>
                </div>
            </li>
        </ul>
    </div>
    <!--隐患库列表 end-->
    <!--foot start-->
    <div class="home_foot">
        <ul>
            <li>
                <a id="home">
                    <img src="/common/images/foot_one.png" />
                    首页
                </a>
            </li>
            <li>
                <a class="chart">
                    <img src="/common/images/foot_two.png" />
                    统计分析
                </a>
            </li>
            <li class="home_foot_on">
                <a href="/hidden/library">
                    <img src="/common/images/foot_three.png" />
                    隐患库
                </a>
            </li>
            <div class="clear_both"></div>
        </ul>
    </div>
    <!--foot end-->
</body>
<script src="/common/js/jquery.js"></script>
<script src="/common/js/common.js"></script>
<script>
    //跳转首页
    $("#home").click(function () {
        location.href = "/hidden/home?openId="+$.userOperate.openId();
    });
    //隐患分析
    $(".chart").click(function () {
        location.href = "/hidden/chart?userId="+$.userOperate.userId();
    });
</script>
</html>
